package com.gzq.factorymethod.practice4;

public class 女娲 {
	public static void main(String[] args) {
		IBglFactory bglFactory = new BglImpl();
		YellowPeopleImpl crate = bglFactory.crate(YellowPeopleImpl.class);
		crate.race();
		WhitePeopleImpl crate2 = bglFactory.crate(WhitePeopleImpl.class);
		crate2.race();
	}
}
